modal barrier in flutter

155

modal barrier in flutter -

Stack(
    children: [
      new Opacity(
        opacity: 0.3,
        child: const ModalBarrier(dismissible: false, color: Colors.grey),
      ),
      Center(
        child: Container(
          Text('Hello'),
        ),
      ),
    ],
  )

Comments

Submit
0 Comments